package com.leyou.item.api;

import com.leyou.item.entity.TbCategory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@RequestMapping("category")
public interface CategoryApi {
    /*根据分类id查询分类名称*/
    @GetMapping("names")
    List<String> queryCategoryNamesByCids(@RequestParam("ids") List<Long> ids);

    /**
     * 根据id获取分类对象
     * @param
     * @return
     */
    @GetMapping("category")
    TbCategory queryCategoryById(@RequestParam("id") Long id);



}
